package com.ybwh.springboot2.okadmin.ftl;


import com.ybwh.springboot2.okadmin.sys.service.CaptchaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 验证码
 */
@Controller
@RequestMapping("/captcha")
public class CaptchaController {
    @Autowired
    private CaptchaService captchaService;


    @GetMapping(value = "/login")
    public void login(@RequestParam("clientCode") String clientCode, HttpServletResponse response) throws IOException {
        captchaService.respLoginCaptcha(clientCode,response);
    }


}
